package com.gitee.kenewstar.migration.core;

import lombok.Data;

/**
 * @author kenewstar
 */
@Data
public class ExceptionResponse {

    private String message;
    private String exceptionType;

    public static ExceptionResponse result(Exception ex) {
        ExceptionResponse response = new ExceptionResponse();
        response.setMessage(ex.getMessage());
        response.setExceptionType(ex.getClass().getName());
        return response;
    }

}
